<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:pou="http://java.sun.com/jsf/html">

<h:head></h:head>
<body>
	<h:form>


		<p:dataTable var="employee"
			value="#{personnelController.Getpersonnel()}" rows="10"
			paginator="true"
			paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
			rowsPerPageTemplate="5,10,15">
			<p:column headerText="Nom">
				<h:outputText value="#{employee.nom}" />
			</p:column>

			<p:column headerText="Prénom">
				<h:outputText value="#{emplyee.prenom}" />
			</p:column>

			<p:column headerText="CIN">
				<h:outputText value="#{employee.cin}" />
			</p:column>

			<p:column headerText="Nom d'utilisateur">
				<h:outputText value="#{employee.nomutilisateur}" />
			</p:column>

			<p:column headerText="Nom d'utilisateur">
				<h:commandButton value="supprimer"
					action="#{personnelController.delete(personnel)}" /> value="#{employee.nomutilisateur}" />
        </p:column>

		</p:dataTable>





	</h:form>
</body>
</html>